package com.webemail.sys.service;

import java.util.List;

import org.springframework.stereotype.Component;

import com.webemail.sys.model.SysMessageInbox;

@Component
public interface MessageInboxService {

	int insert(SysMessageInbox temp);

	int delete(long id, long userId);

	int update(SysMessageInbox temp);

	SysMessageInbox get(long id, long userId);

	List<SysMessageInbox> list(long mailId, long userId);

	int insert(List<SysMessageInbox> temp);

	List<SysMessageInbox> listByPage(long userId, long mailId, String colomn, String word, int offset, int limit, int... states);

	long count(long userId, long mailId, String colomn, String word, int... states);

	List<SysMessageInbox> listByPage(long userId, String colomn, String word, int offset, int limit, int... states);

	long count(long userId, String colomn, String word, int... states);

}
